<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>教学秘书管理</title>

    <script th:src="@{/bootstrap/js/jquery-1.11.2.min.js}"></script>
    <link rel="stylesheet" th:href="@{/bootstrap4/bootstrap.css}">

    <script th:src="@{/bootstrap4/bootstrap.js}"></script>

    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>

    <link rel="stylesheet" th:href="@{/css/com/message.css}">
    <link rel="stylesheet" th:href="@{/font/message/iconfont.css}">
    <link rel="stylesheet" th:href="@{/css/student/selectAdviser.css}">
</head>
<body>

<div th:replace="~{components/com::topbar}"></div>
<div th:replace="~{components/side-menu::size-menu-bar}"></div>


<div class="container-fluid">
    <div class="title"><h3>用户管理列表——教学秘书</h3></div>

    <div class="row">
        <div class="input-group column" style="display: flex; align-items: center; justify-content: center;width: 500px;margin-left: 15px">
            <input type="text" class="form-control input-small" name="number" id="number" placeholder="请输入要搜索的教学秘书工号" autocomplete="off">
            <span class="input-group-addon btn btn-primary" id="seach" style="background-color:#e67e22; border: none">搜索</span>
        </div>
        <div class="input-group col-3 column">
            <span class="input-group-addon btn btn-primary" id="add" style="background-color:#e67e22; border: none">添加教学秘书</span>
        </div>

    </div>

    <br>
    <div class="row clearfix">
        <div class="col-md-12 column" th:fragment="div1" th:id="div1" >
            <table class="table align-content-center" id="scoreTable" style="text-align: center">
                <thead class="">
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">姓名</th>
                    <th scope="col">密码</th>
                    <th scope="col">添加时间</th>
                    <th scope="col">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="secretary:${secretaries}">
                    <th scope="row" th:text="${secretary.getId()}"></th>
                    <td th:text="${secretary.getUsername()}"></td>
                    <td th:text="${secretary.getPwd()}"></td>
                    <td th:text="${#temporals.format(secretary.getAddTime(), 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td>
                        <span class="input-group-addon btn btn-primary select-adviser-btn" th:data-id="${secretary.id}" style="border: none">删除</span>
                        <a class="btn btn-primary" th:href="@{'/admin/adUser/edit/secretary/'+${secretary.id}}" style="background-color:#e67e22; border: none">修改</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
<script type="module" th:src="@{/js/admin/adUser/adSecretary.js}"></script>
</html>